<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Carbon - Admin Template</title>
    <link rel="stylesheet" href="/vendor/simple-line-icons/css/simple-line-icons.css">
    <link rel="stylesheet" href="/vendor/font-awesome/css/fontawesome-all.min.css">
    <link rel="stylesheet" href="/css/styles.css">
</head>
<body>
<div class="page-wrapper flex-row align-items-center">
    <div class="container">
        <div class="row justify-content-center">
            <div class="col-md-5">
                <div class="card p-4">
                    <div th:text="#{login.title}" class="card-header text-center text-uppercase h4 font-weight-light" />
                    <p style="color:red;text-align: center" th:text="${msg}" th:if="${not #strings.isEmpty(msg)}"/>
                    <form th:action="@{/__${lang}__/loginvalid}" th:method="post">
                    <div class="card-body py-5">
                        <div class="form-group">
                            <label th:text="#{login.email}" class="form-control-label" />
                            <input th:name="username" type="email" class="form-control">
                        </div>

                        <div class="form-group">
                            <label th:text="#{login.password}" class="form-control-label" />
                            <input th:name="password" type="password" class="form-control">
                        </div>

                        <div class="custom-control custom-checkbox mt-4">
                            <input type="checkbox" class="custom-control-input" id="login">
                            <label th:text="#{tips.remember}" class="custom-control-label" for="login" />
                        </div>
                    </div>
                    <div class="card-footer">
                        <div class="row">
                            <div class="col-6">
                                <button th:text="#{login.btn}" type="submit" class="btn btn-primary px-5"/>
                            </div>

                            <div class="col-6">
                                <a th:text="#{tips.forgot}" href="index" class="btn btn-link"/>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-6" style="padding-top: 10px;text-align: right">
                                <a href="/zh-CN/login.html">中文</a>
                            </div>
                            <div class="col-6" style="padding-top: 10px;text-align: left">
                                <a href="/en-US/login.html">English</a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="/vendor/jquery/jquery.min.js"></script>
<script src="/vendor/popper.js/popper.min.js"></script>
<script src="/vendor/bootstrap/js/bootstrap.min.js"></script>
<script src="/vendor/chart.js/chart.min.js"></script>
<script src="/js/carbon.js"></script>
<script src="/js/demo.js"></script>
</body>
</html>
